# coding=utf-8
from django.db import models

class xls(models.Model):
    a = models.CharField(max_length=30)
    b = models.IntegerField()
    c = models.DecimalField(max_digits=9, decimal_places=2)
    d = models.DateTimeField(auto_now_add=True)
    class Meta:
        db_table = 'xls'

class user(models.Model):
    username = models.CharField(verbose_name='账号', max_length=30, unique=True)
    password = models.CharField(verbose_name='密码', max_length=128)
    realname = models.CharField(verbose_name='名字', max_length=30)
    mobile = models.CharField(verbose_name='手机', max_length=20, blank=True, null=True)
    email = models.EmailField(verbose_name='邮箱', blank=True, null=True)
    qq = models.CharField(verbose_name='ＱＱ', max_length=20, blank=True, null=True)    
    date_joined = models.DateTimeField(auto_now_add=True)
    class Meta:
        db_table = 'user'